package com.urbanski.clipboard.common.message;

public class LeaveResponse implements Response
{
	private static final long serialVersionUID = 1L;

	public static enum LeaveResponseValue
	{
		SUCCESS("Successfully left session"), NOT_MEMBER("Not a member of that session"), SESSION_DOES_NOT_EXIST("Session does not exist");

		private String errorMessage;

		private LeaveResponseValue(String errorMessage)
		{
			this.errorMessage = errorMessage;
		}

		public String getErrorMessage()
		{
			return errorMessage;
		}
	}

	private LeaveResponseValue response;

	public LeaveResponse(LeaveResponseValue response)
	{
		this.response = response;
	}

	public LeaveResponseValue getResponse()
	{
		return response;
	}

	public String getResponseText()
	{
		return response.getErrorMessage();
	}

}
